﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNS.Class;
namespace QLNS.NghiepVu
{
    public partial class frmSuaQTKhenThuongKyLuat : Form
    {
        public frmSuaQTKhenThuongKyLuat()
        {
            InitializeComponent();
        }
        DB cn = new DB();
        //private string tag;
        private void frmSuaQTKhenThuongKyLuat_Load(object sender, EventArgs e)
        {
            load_combo();

        }
        private void load_combo()
        {
            cn.KetNoi();

            cmbSoQD.DataSource = cn.getTable("select *from QuyetDinhKhenThuongKyLuat");
            cmbSoQD.DisplayMember = "SoQD";
            cmbSoQD.ValueMember = "SoQD";
            cmbChucVu.DataSource = cn.getTable("select *from ChucVu");
            cmbChucVu.DisplayMember = "TenChucVu";
            cmbChucVu.ValueMember = "MaChucVu";

            cmbToMon.DataSource = cn.getTable("select *from ToMon");
            cmbToMon.DisplayMember = "TenToMon";
            cmbToMon.ValueMember = "MaToMon";
            cmbMaLoai.DataSource = cn.getTable("select *from KhenThuongKyLuat");
            cmbMaLoai.DisplayMember = "TenLoai";
            cmbMaLoai.ValueMember = "MaLoai";
        }
    }
}
